<?php
ob_start();
	include 'connect/connect.php';
check_admin();
	$main = file_get_contents('template/main.html');

$result = mysql_query("SELECT * FROM tbl_luonggiangvien") 
or die(mysql_error());  
	echo "<table border='1' style='border-collapse: collapse'>";
echo   '<td width="59" bgcolor="#D6E0D8">Họ và tên</td>
			<td width="75" bgcolor="#D6E0D8">Ngày</td>
			<td width="51" bgcolor="#D6E0D8">Diễn giải</td>
			<td width="51" bgcolor="#D6E0D8">Số tiền	</td>';
    while ($row = mysql_fetch_array($result))
    {
			  echo "<tr>";
			  echo "<td>" . $row['f_hovaten'] . "</td>";
			  echo "<td>" . $row['f_ngay'] . "</td>";
			  echo "<td>" . $row['f_diengiai'] . "</td>";
			  echo "<td>" . number_format($row['f_sotien']) . "</td>";
			  echo "</tr>";
    }
	
echo "</table>";
echo "<p>";
echo 'Hom nay la '.date("d-m-y");
?>